#/bin/sh
function RemoveSVN
{
	for f in $(ls . -a);
	do
		if [ -f $f ];
		then
			continue;
		fi

		if [ "$f" = ".svn" ]; #if this is the .svn folder ,then remove
		then
			echo "clear svn symbol $(pwd)"
			echo "rm $f"
			rm $f -rf;
			continue;
		fi

		if [ "$f" = "." -o "$f" = ".." ];
		then
			continue;
		fi

		if [ -d $f ];
		then
			cd $f
			RemoveSVN
			cd ..
		fi
	done
}


#check if this is my gmail svn , if yes , no more executing
info1='gmail'
echo $(svn info)  | grep -q "$info1"
if [ $? -eq 0 ];
then
	echo "Error:Gmail svn, no more executing, return NOW"

	exit 0
fi
#check finish

RemoveSVN 
exit 0
